package com.shop.admin.validate.paper;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.io.Serializable;

@Data
@ApiModel("试卷关联课程参数")
public class PaperCourseValidate implements Serializable {
    private static final long serialVersionUID = 1L;

    @NotNull(message = "课程ID参数缺失")
    @ApiModelProperty(value = "课程ID")
    private Integer id;

    @NotNull(message = "课程名称不能为空")
    @ApiModelProperty(value = "课程名称")
    private String title;
}
